package com.example.demo.mapper;

import com.example.demo.entity.Userinfo;
import com.example.demo.entity.vo.UserinfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:龙宝
 * Date:2023-03-31
 * Time:18:38
 */
@Mapper
public interface UserMapper {
    int reg(Userinfo userinfo);

//    Userinfo login(Userinfo userinfo);
    //根据用户名，查询 登录
    Userinfo getUserByName(String username);

    Userinfo getUserById(@Param("id") Integer id);

    //个人信息修改
    int upuserinfo(Userinfo userinfo);
    //修改个人state以免多次恶意登录
    //更新state+unfreezingtime
    int upState(Userinfo userinfo);
}
